﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace B.S.Shop.Infartructrue.Migrations
{
    /// <inheritdoc />
    public partial class a : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.CreateTable(
                name: "BossClasses",
                columns: table => new
                {
                    BossId = table.Column<int>(type: "int", nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    BossName = table.Column<string>(type: "nvarchar(max)", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_BossClasses", x => x.BossId);
                });

            migrationBuilder.CreateTable(
                name: "orderClasses",
                columns: table => new
                {
                    OrderId = table.Column<int>(type: "int", nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    OrderName = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    OrderType = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    OrderDw = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    PriceNum = table.Column<int>(type: "int", nullable: false),
                    PriceZl = table.Column<int>(type: "int", nullable: false),
                    PriceZh = table.Column<int>(type: "int", nullable: false),
                    PriceCj = table.Column<int>(type: "int", nullable: false),
                    isShow = table.Column<bool>(type: "bit", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_orderClasses", x => x.OrderId);
                });

            migrationBuilder.CreateTable(
                name: "shopClasses",
                columns: table => new
                {
                    ShopId = table.Column<int>(type: "int", nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    ShopCord = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    ShopTime = table.Column<DateTime>(type: "datetime2", nullable: false),
                    ShopName = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    ShopPrice = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
                    IsShop = table.Column<bool>(type: "bit", nullable: false),
                    IsMoney = table.Column<bool>(type: "bit", nullable: false),
                    IsGo = table.Column<bool>(type: "bit", nullable: false),
                    UserName = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    Phone = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    IsDel = table.Column<bool>(type: "bit", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_shopClasses", x => x.ShopId);
                });

            migrationBuilder.CreateTable(
                name: "shopNameClasses",
                columns: table => new
                {
                    ShopsId = table.Column<int>(type: "int", nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    ShopsName = table.Column<string>(type: "nvarchar(max)", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_shopNameClasses", x => x.ShopsId);
                });
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropTable(
                name: "BossClasses");

            migrationBuilder.DropTable(
                name: "orderClasses");

            migrationBuilder.DropTable(
                name: "shopClasses");

            migrationBuilder.DropTable(
                name: "shopNameClasses");
        }
    }
}
